package com.mit.common.design.dto;

import com.mit.common.dto.AbstractDTO;

public class TemplatePartDTO extends AbstractDTO {

	private int templateId;
	private String name;
	private String measure;
	
	public int getTemplateId() {
		return templateId;
	}
	public void setTemplateId(int templateId) {
		this.templateId = templateId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getMeasure() {
		return measure;
	}
	public void setMeasure(String measure) {
		this.measure = measure;
	}
	@Override
	public boolean equals(Object obj) {
		if(obj == null)
			return false;
		if(! (obj instanceof TemplatePartDTO))
			return false;
		return (((TemplatePartDTO) obj).getId() == null)
				? (this.id == null)
				: (((TemplatePartDTO) obj).getId().equals(this.id));
	}
	
}
